package com.onlineclass.onlineclassmanagement.controller;

import com.onlineclass.beas.Course;
import com.onlineclass.beas.ResultObject;
import com.onlineclass.onlineclassmanagement.feign.GetrecommendFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RequestMapping("/homepage")
@RestController
@Slf4j
public class RecommendController {

    @Autowired
    GetrecommendFeign getrecommendFeign;

    @RequestMapping("/getrecommend")
    public ResultObject getRecommendedcourses(){
        ResultObject courses = getrecommendFeign.getRecommendedcourses();
            return courses;
        }

}
